
<p>
  <b>Name: </b><%= @user.name %>
</p>
<% if is_admin(session[:user_id]) %>
  <p>
    <b>Password: </b><%= @user.password %>
  </p>
<% end %>
<p>
  <b>Email: </b><%= @user.email %>
</p>
<p>
  <b>Signature: </b><%= @user.signature %>
</p>
<p>
  <b>Number of Posts: </b><%= num_posts( @user.id ) %>
</p>
<ul id="user_nav">
 <li><%= link_to("Show Posts", show_users_posts_path(@user.id), :class => "button")%></li>
  <% if @user.id == session[:user_id] || is_admin(session[:user_id])  %>
    <li><%= link_to("Edit", edit_user_path(@user.id), :class => "button")%></li>
  <%end%>
  <% if is_admin(session[:user_id]) %>
    <li><%= link_to("Delete", delete_user_path(@user.id), :class => "button")%></li>
  <%end%>
  <li><%= link_to("All Users", all_users_path, :class => "button") %></li>
</ul>